package com.yang.dao;

import com.yang.entity.GuestEntity;
import com.yang.entity.LiverRelationEntity;
import com.yang.entity.OrderFormEntity;
import com.yang.entity.RoomEntity;
import com.yang.pojo.GuestDto;
import com.yang.pojo.ModificationDto;

import java.util.List;

public interface SelectInformationDao {

    /**
     * 通过姓名查找顾客
     * @param name
     * @return
     */
    public List<GuestEntity> selectGuestByNam(String name);

    /**
     * 通过顾客ID找到关系表
     * @param guestId
     * @return
     */
    public LiverRelationEntity selectLiverByguesIdAndStatus(long guestId,String status);

    /**
     * 通过房号和num找到live
     * @param roomId
     * @param status
     * @return
     */
    public List<LiverRelationEntity> selectLiveByRoomIdAndStatus(long roomId,String status);

    /**
     * 同过Id找到guest
     * @param guestId
     * @return
     */
    public GuestEntity selectGuestByGuestId(long guestId);

    /**
     * 通过orderID找到orderForm表
     * @param orderId
     * @return
     */
    public OrderFormEntity selectOrderByOrderId(long orderId);

    /**
     * 通过房号找的房间
     * @param roomNum
     * @return
     */
    public RoomEntity selectRoomByRoomNum(String roomNum);

    /**
     * 查询修改
     * @param room
     * @param name
     * @return
     */
    public List<ModificationDto> selectModByRoomAndName(String room,String name);

    /**
     * 更新顾客表
     * @param guestEntity
     * @return
     */
    public boolean updataGuest(GuestEntity guestEntity);



}
